<template>
  <div id="app">
    vue app
  </div>
</template>

<script type="ts">

import { defineComponent, toRefs } from 'vue'

export default defineComponent({
  setup(props){
    const {emit} = toRefs(props)
    console.log(1, emit)
  },
  mounted() {
    console.log(2)
  }
})
</script>

vue3 template
